home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
comm
/
irc
/
Unreal32B12.lha
/
Unreal
/
unreal
< prev
next >
Wrap
Text File
|
2002-11-02
|
1KB
|
35 lines
#!/bin/sh
PID_FILE="/Unreal/ircd.pid"
PID_BACKUP="/Unreal/ircd.pid.bak"
if [ "$1" = "start" ] ; then
echo "Starting UnrealIRCd"
if [ -r $PID_FILE ]; then
mv -f $PID_FILE $PID_BACKUP
fi
/Unreal/ircd
sleep 1
if [ ! -r $PID_FILE ]; then
echo "Possible error encountered (IRCd seemily not started)"
echo "====================================================="
echo "Check above for possible errors, and this output of "
echo "ircd.log. If you cannot solve the problem, read"
echo "Unreal.nfo on where to get support"
echo "====================================================="
tail -n 5 /Unreal/ircd.log
fi
elif [ "$1" = "stop" ] ; then
echo "Stopping UnrealIRCd"
kill -9 `cat $PID_FILE`
elif [ "$1" = "rehash" ] ; then
echo "Rehashing UnrealIRCd"
kill -1 `cat $PID_FILE`
elif [ "$1" = "restart" ] ; then
echo "Restarting UnrealIRCd"
kill -2 `cat $PID_FILE`
elif [ "$1" = "mkpasswd" ] ; then
/Unreal/ircd -P $2 $3
else
echo "Usage: unreal start|stop|rehash|restart|mkpasswd"
fi